package unit4_1013.test3.cars;

public abstract class Vehicle {
	
	private String vehicleId;//车牌号
	private String brand;//品牌
	private int perRent;//日租金
	
	public abstract float calcRent(int days);//计算租金
	
	public Vehicle() {}

	public String getVehicleId() {
		return vehicleId;
	}

	public void setVehicleId(String vehicleId) {
		this.vehicleId = vehicleId;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public int getPerRent() {
		return perRent;
	}

	public void setPerRent(int perRent) {
		this.perRent = perRent;
	}

	public Vehicle(String vehicleId, String brand, int perRent) {
		super();
		this.vehicleId = vehicleId;
		this.brand = brand;
		this.perRent = perRent;
	}

	@Override
	public String toString() {
		return "车牌号：" + vehicleId + ", 品牌：" + brand + ", 日租金：" + perRent;
	}

	
	
	
	
}
